package com.it.methoddemo;

import java.util.Scanner;

public class MethodDemo2 {
    public static void main(String[] args) {
        //利用最简单的方法打印练习
        getSum();
    }
    public static void getSum(){
        int num1 = 10;
        int num2 = 20;
        int sum = num1+num2;
        System.out.println(sum);
    }
}
